﻿using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;

namespace LMSData
{
    public partial class AssessmentItemController
    {
        public AssessmentItemCollection FetchByAid(int AssessemntID)
        {
            AssessmentItemCollection coll = new AssessmentItemCollection();
            Query qry = new Query(AssessmentItem.Schema).WHERE(AssessmentItem.Columns.AssessmentID, AssessemntID);
            coll.LoadAndCloseReader(qry.ExecuteReader());
            return coll;
        }
    }
}
